package com.zzc.qqchat.entity;

import java.io.Serializable;
import java.sql.Time;
import java.util.Date;

public class Message implements Serializable {
    private String content;
    private int fromUserId;
    private int toUserId;
    private Time time;
    private String userName;
    private String messageType;

    public Message(String content, int fromUserId, int toUserId,Time time,String userName,String messageType) {
        this.content = content;
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.time = time;
        this.userName = userName;
        this.messageType = messageType;
    }



    public Time getTime() {
        return time;
    }

    public void setTime(Time time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getFromUserId() {
        return fromUserId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getMessageType() {
        return messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public void setFromUserId(int fromUserId) {
        this.fromUserId = fromUserId;
    }

    public int getToUserId() {
        return toUserId;
    }

    public void setToUserId(int toUserId) {
        this.toUserId = toUserId;
    }
}
